import service from '../utils/request'

//模糊查询、分页、排序
export const getTriendsBySearch = (params:any) => {
    return service({
        url:'/api/triend/search',
        method:'get',
        params
    })
}
//根据id删除动态
export const deleteTriendById = (params:any) => {
    return service({
        url:'/api/triend/delete/one',
        method:'post',
        params
    })
}
//批量删除
export const deleteTriendAmount = (params:any) => {
    return service({
        url:'/api/triend/delete/amount',
        method:'post',
        params
    })
}
//根据id查找动态
export const getTriendById = (params:any) => {
    return service({
        url:'/api/triend/detail',
        method:'get',
        params
    })
}